//package com.bdqn.ch05.com.bdqn.comm;
//
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class FilterConfig {
//    @Bean
//    public FilterRegistrationBean filterRegist(){
//        FilterRegistrationBean registrationBean=new FilterRegistrationBean();
//        registrationBean.setFilter(new AuthorizationFilter());
//        registrationBean.setName("AuthorizationFilter");
//        registrationBean.addUrlPatterns("/main");
//        registrationBean.setOrder(5);
//        return registrationBean;
//    }
//}
